from UI文件 import Ui_Form
from PyQt6.QtWidgets import QApplication, QWidget
import sys
if __name__ == '__main__':
    app = QApplication(sys.argv)

    w = QWidget()

    ui = Ui_Form()
    ui.setupUi(w)

    w.show()

    sys.exit(app.exec())
